<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引包 -->
    <script src="../js/vue.js"></script>
</head>

<body>
    <!-- 容器|模板 -->
    <div id="app">
        <button @click="f+=30">点击放大字体</button>
        <!-- <p :style="{fontSize:f+'px'}">哈哈哈哈</p> -->
        <p :style="{fontSize:`${f}px`}">哈哈哈哈</p>

    </div>
</body>

</html>
<script>
    //关联VM
    const VM = new Vue({
        el: '#app',
        data: {
            f: 16
        }
    })
</script>